package com.robot.dto;

import com.robot.bean.Employee;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

/**
 * Created by duqingxiang on 17/5/4.
 */
@Mapper
public interface EmployeeMapper {

    @Mappings({
            @Mapping(source = "id", target = "id"),
            @Mapping(source = "name", target = "name")
    })
    EmployeeDTO employeeToEmployeeDTO(Employee employee);
}
